import request from '@/utils/request'

// 添加
export function AddMaterialsDemand(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/materialsDemand/add",
    method: "POST",
    data: params,
  })
}

// 删除
export function deleteMaterialsDemand(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/materialsDemand/delete",
    method: "POST",
    data: params,
  })
}

// 产品需求推荐
export function GetOnlinePageList(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/materialsDemand/getOnlineRecommendationPageList",
    method: "POST",
    data: params,
  })
}

//产品需求分页列表
export function GetPageList(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/materialsDemand/getPageList",
    method: "POST",
    data: params,
  })
}

//获取产品需求首页分页列表
export function GetSearchPageList(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/materialsDemand/getSearchPageList",
    method: "POST",
    data: params,
  })
}

//获取对象详情
export function GetInfo(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/materialsDemand/info",
    method: "POST",
    data: params,
  })
}

//修改对象
export function UpdateMaterialsDemand(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/materialsDemand/update",
    method: "POST",
    data: params,
  })
}

// 产品分类级别
export function GetByParent(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/productCategory/getByParent",
    method: "GET",
    params,
  })
}

//获取企业基本信息
export function GetBaseInfo(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/entBaseInfo/info",
    method: "POST",
    data: params,
  })
}

//添加留言
export function addMessage(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/userMessage/add",
    method: "POST",
    data: params,
  })
}

//添加关注
export function addAttention(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/userAttention/add",
    method: "POST",
    data: params,
  })
}

//取消关注
export function updateAttention(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/userAttention/update",
    method: "POST",
    data: params,
  })
}


//导航统计
export function getMaterialMicroStatistics(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/materialsDemand/getMaterialMicroStatistics",
    method: "POST",
    data: params,
  })
}

//获取短信验证码
export function getVerifiyCode(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/EntBaseInfo/sendVerifiyCode",
    method: "post",
    data: params,
  })
}

//校验短信验证码
export function checkVerifiyCode(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/EntBaseInfo/verifyShortMessage",
    method: "post",
    data: params,
  })
}


//获取已发布供应
export function getProductList(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/userMessage/getMyProductList",
    method: "post",
    data: params,
  })
}